import unittest
from ConditionalExample import ConditionalExample

class ConditionalExample_Test(unittest.TestCase):

    def setUp(self):
        """Call before every test case."""
        self.conditionalExample = ConditionalExample()

    def tearDown(self):
        self.conditionalExample.__del__()

    def testA(self):
        self.conditionalExample.setValue(0)
        assert self.conditionalExample.getValue() == 0, "Default getValue() not 0"

    def testB(self):
        self.conditionalExample.setValue(2)
        assert self.conditionalExample.getValue() == 100, "getValue() did not return 2"

if __name__ == "__main__":
    unittest.main()
